package com.vm.osm.business.service.impl;

import com.vm.osm.business.dao.OsmAuthCodeMapper;
import com.vm.osm.business.dto.rsp.authRule.AuthType;
import com.vm.osm.business.entity.OsmAuthCode;
import com.vm.osm.business.service.IOsmAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chenzui on 2018/2/23.
 */
@Service
public class OsmAuthServiceImpl implements IOsmAuthService {
    @Autowired
    private OsmAuthCodeMapper osmAuthCodeMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return osmAuthCodeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OsmAuthCode record) {
        return osmAuthCodeMapper.insert(record);
    }

    @Override
    public int insertSelective(OsmAuthCode record) {
        return osmAuthCodeMapper.insertSelective(record);
    }

    @Override
    public OsmAuthCode selectByPrimaryKey(String id) {
        return osmAuthCodeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(OsmAuthCode record) {
        return osmAuthCodeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OsmAuthCode record) {
        return osmAuthCodeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<AuthType> findAll() {
        return osmAuthCodeMapper.findAll();
    }
}
